@echo off
@REM dir /ad-h/s/b>LIST.TXT
@REM echo "">LIST.TXT
@REM 遍历文件夹
dir /ad-h/s/b>LIST.TXT

set strFilePath=LIST.TXT
set str_ip=\
set chk_ip=/
@REM 生成一个空的bak
echo "">ttttttttt.bak

@REM 将行内的str_ip替换成chk_ip
@REM 并将行内原文使用""包起来再在行末添加,
@REM 再在再将结果保存在ttttttttt.bak中
setlocal enabledelayedexpansion
for /f "tokens=*" %%i in (%strFilePath%) do (
  set "var=%%i"
  if not !var!.==. (
    set "var=!var:%str_ip%=%chk_ip%!"
    set "var="!var!","
    echo !var!!>>ttttttttt.bak
  )
)
@REM 将文件复制回原文
move /y ttttttttt.bak %strFilePath%




@REM 45555